package demo2;

import com.sun.org.apache.bcel.internal.classfile.InnerClass;

public class Test2 {

    public static void main(String[] args) {
       OutClass.InnerClass innerClass = new OutClass.InnerClass() ;
       OutClass outClass = new OutClass() ;
    }
}
class OutClass{
    public int a = 1 ;
    private int b = 2 ;
    public static int c = 3 ;

   static class InnerClass{
        public int d = 4 ;
        private int e = 5 ;
        static int f = 6 ;
     public void test(){
         OutClass outClass = new OutClass() ;
         System.out.println(outClass.b);
         System.out.println("静态内部类");
     }

    }
    public void test(){
       OutClass.InnerClass innerClass = new OutClass.InnerClass();

        System.out.println(innerClass.e);
    }

}